class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string :full_name
      t.string :sex, :default => 'unknown'
      t.string :email,
        :mobile,
        :address,
        :encrypted_password,
        :pk
      t.integer :enterprise_id
      t.string :status, :default => 'active'
      t.text :remark
      t.timestamps
    end
  end

  def self.down
    drop_table :users
  end
end
